#!/usr/bin/node

const argv = process.argv[2];

//validate argv
//1 argv number equal 3
if(process.argv.length !== 3){
  console.log('cmd exit-code');
  process.exit(1);
}

//2 code type is number
if(isNaN(Number(argv))){
  console.log('argv must be number');
  process.exit(2);
}

  
//3 code range > 0
if(Number(argv)<0){
  console.log('argv must >= 0');
  process.exit(3);
}

process.exit(argv);
